﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Util
/// </summary>
public class Util
{
	public Util()
	{
		//
		// TODO: Add constructor logic here
		//

	}

    public static void showmsg(String str, System.Web.UI.Page page)
    {
        string prompt = "<script>$(document).ready(function(){{$.prompt('{0}!',{1});}});</script>";
        string message = String.Format(prompt, str, "{ prefix: 'cleanblue' }");
        page.ClientScript.RegisterStartupScript(page.GetType(), "alert", message);
    }

    //public static void showmsgconfirmacion(String str, System.Web.UI.Page page)
    //{
    //    string prompt = "<script>$(document).ready(function(){{$.prompt('{0}!');}});</script>";
    //    string message = String.Format(prompt, str);
    //    page.ClientScript.RegisterStartupScript(page.GetType(), "message", message);
    //}
}